export interface IColumn {
  id: number;
  code: string;
  areaId: number;
  status: number;
  ip: string;
  port: number;
  loginIp: string;
  loginPwd: string;
  updatedTime: string;
  createdTime: string;
  dialUpAccount: string;
  dialUpPwd: string;
  note: string;
  //------冗余字段------
  areaName: string;
}

// Table的参数
export interface ITableInfo {
  pageNum: number; //当前页码
  pageSize: number; //每页数据条数
  sortColumn: string; //排序字段名
  sortType: string; //排序类型
  selectedKeys: number[] | string[]; // 多选的Key
}

// 所属用户下拉框
export interface IAreaSelect {
  id: number;
  name: string;
}

export interface IVpsStatus {
  id: number;
  value: string;
}

export const VPS_STATUS: Array<IVpsStatus> = [
  { id: 0, value: "空闲" },
  { id: 1, value: "使用中" },
  { id: 2, value: "待切换IP" }
];
